package com.rainwood.water_authority.http.response;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * @author sxs
 * @date :2020/10/21
 * @desc: 发料通知单
 */
public final class IssueDetailBean {

    /**
     * code : 1
     * warn :
     * data : {"goods":[{"goodsId":"ldxdnnkgw16c","applicationsNum":"2","receiveNum":"2","button":"已完成","number":"FZWG-074960","name":"物资名称5","speciModel":"规格型号5","unit":"吨"}],"number":"WL201010DP585","site":"南滨路","team":"作业队名称"}
     */
    @SerializedName("code")
    private int code;
    @SerializedName("warn")
    private String warn;
    @SerializedName("data")
    private DataDTO data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getWarn() {
        return warn;
    }

    public void setWarn(String warn) {
        this.warn = warn;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {

        /**
         * goods : [{"goodsId":"ldxdnnkgw16c","applicationsNum":"2","receiveNum":"2","button":"已完成","number":"FZWG-074960","name":"物资名称5","speciModel":"规格型号5","unit":"吨"}]
         * number : WL201010DP585
         * site : 南滨路
         * team : 作业队名称
         */
        @SerializedName("number")
        private String number;
        @SerializedName("site")
        private String site;
        @SerializedName("team")
        private String team;
        @SerializedName("goods")
        private List<GoodsDTO> goods;

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getSite() {
            return site;
        }

        public void setSite(String site) {
            this.site = site;
        }

        public String getTeam() {
            return team;
        }

        public void setTeam(String team) {
            this.team = team;
        }

        public List<GoodsDTO> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsDTO> goods) {
            this.goods = goods;
        }

        public static class GoodsDTO {
            /**
             * goodsId : ldxdnnkgw16c
             * applicationsNum : 2
             * receiveNum : 2
             * button : 已完成
             * number : FZWG-074960
             * name : 物资名称5
             * speciModel : 规格型号5
             * unit : 吨
             */
            @SerializedName("goodsId")
            private String goodsId;
            @SerializedName("applicationsNum")
            private String applicationsNum;
            @SerializedName("receiveNum")
            private String receiveNum;
            @SerializedName("button")
            private String button;
            @SerializedName("number")
            private String number;
            @SerializedName("name")
            private String name;
            @SerializedName("speciModel")
            private String speciModel;
            @SerializedName("unit")
            private String unit;

            public String getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(String goodsId) {
                this.goodsId = goodsId;
            }

            public String getApplicationsNum() {
                return applicationsNum;
            }

            public void setApplicationsNum(String applicationsNum) {
                this.applicationsNum = applicationsNum;
            }

            public String getReceiveNum() {
                return receiveNum;
            }

            public void setReceiveNum(String receiveNum) {
                this.receiveNum = receiveNum;
            }

            public String getButton() {
                return button;
            }

            public void setButton(String button) {
                this.button = button;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getSpeciModel() {
                return speciModel;
            }

            public void setSpeciModel(String speciModel) {
                this.speciModel = speciModel;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }
        }
    }
}
